/**
 *  @file SDLChunkDeleter.h
 *
 *  @date 4-dec-2009
 *  @author Ives van der Flaas
 */

#ifndef SDLCHUNKDELETER_H_
#define SDLCHUNKDELETER_H_

#include <SDL_mixer.h>
namespace si_sdl
{
/**
 * This is needed to use SDL_Chunk's of audio in combination with shared_ptr's.
 */
class SDLChunkDeleter
{
public:
	void operator() (Mix_Chunk* chunk){ Mix_FreeChunk(chunk); }
};

}

#endif /* SDLCHUNKDELETER_H_ */
